home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-04 | 6.6 KB | 150 lines | [TEXT/R*ch] |
- I'm 46 and have worked in the construction trades for 30 years. I
- got my first computer in 1988 - a Televideo TS-803, CP/M machine.
- I was interested in programming then, but the TS-803 was an antique
- and I couldn't get much for it or use it much. My main use was an
- adventure game that came with it. For a $150 machine, it was okay.
-
- I then demanded a computer I could USE and print from, and sought
- one. I bought a Mac 512 for $400, with an ImageWriter, neither of
- which had manuals. I learned the Mac through trial and error and
- what little info I could from a few places.
-
- In an effort to get it to run "modern" stuff, I bumped it up to a
- 512E and got a Dove 1MB board for it. There was a place within
- driving distance which sold disks with PD and Shareware. If I was
- curious about some aspect of the Mac, I'd get a disk with stuff on
- that subject. ResEdit 1.2 became one of my favorite programs.
-
- I didn't know of the existence of "Inside Macintosh."
-
- -----
-
- Working as a carpenter, I do the programming stuff for "fun and
- profit." I got into Mac programming for fun and profit. So far,
- it's been a lot of FUN!
-
- When I first started at programming I soon discovered there was no
- laid out path going from Mac user to Mac programmer. Nothing "all
- under one roof" which taught skills to non programmers in the
- sequence, and in the detail, I wanted to learn. Without being able
- to take a course, the ONLY avenue of approach available to me was
- the "self-taught" route. But this can pay off as seen by such
- competent programmers as Jay Riley, Joe Zobkiw, Mark Hanrek and
- some others, who went the self-taught route.
-
- I also discovered that part of the process of learning to program was in
- *learning HOW TO LEARN* it!
-
- It can be done, but it's not easy. The materials available for the
- *self-taught* approach are:
-
- (1) Reading books.
-
- (2) Asking questions in programmer message forums.
-
- (3) Studying example source code projects.
-
- (4) Trial and error in conjunction with the above.
-
- Of all, 3 and 4 are the least expensive, easiest to get, and
- produce the fastest results - if not the best results.
-
- I decided I'd go with the C language because of several reasons -
- none of which probably had any basis in anything but PR. MacWrite
- II was supposedly written in it, I had a bad experience with Turbo
- Pascal on an earlier attempt to get into programming, C's popular.
-
- I bought "Learn C on the Macintosh" by Dave Mark, but all it did
- was leave me with questions and a stronger desire to get a real C
- programming environment - namely THINK C.
-
- One basic thing I learned was: "Running example code SHOWS HOW to
- program." Even if the running example is "all Greek" - it still is
- an example of a running program. The trick is, to understand WHAT
- it does and why it does it. And understand all the ingredients and
- why THOSE are *the* ingredients.
-
- So, I decided to get more than what came with THINK C and run it in
- the debugger, compare what I saw to what Inside Macintosh said and
- see if I could get an idea of what it was all about.
-
- I only had America Online, so I began downloading C source and then
- running it. One of the early things I noticed was that not all the
- source code projects I downloaded ran as received. That bothered
- me. Waste all that time and money downloading something and it
- does not run!
-
- This got me to comparing parts of the unrunning programs with parts
- of running programs, to see if I could spot what it was that was
- different between them. Maybe I could find the error and correct
- it and get it to run?
-
- This worked! I not only was able to get some unrunning programs to
- run, but in doing so I learned more about programming and the
- ToolBox!
-
- Messing with so many downloaded sources, I began to "think" C, and
- could recall where and in what project certain routines were that
- did certain things. I also got the general layout of a Mac program
- and many Toolbox calls, etc.
-
- Experimentation by changing values and seeing what the changes did
- also helped me learn.
-
- When I downloaded SearchFiles 1.3, I immediately saw it as a great
- tool for finding things in running code that would help me figure
- out how to fix unrunning code. Consequently, I could get instant
- answers to questions *if* I had enough source code, without having
- to wait for answers in programming conferences (or not even get
- any).
-
- Of course, I bought lots of books on the subject. These helped to
- fill in the gaps and evaluate importances, and simplify lots of
- things.
-
- The thing about getting unrunning programs to run and
- redistributing them, aside from a learning process, is also to help
- other novice Mac C programmers have an easier time than I had in
- learning. If I download a program that doesn't run, it wastes my
- time, and makes me a little angry. So, if I get it running and
- repost it, others can download it and not have it be a waste of
- their time, and they can USE it.
-
- If I learn something while reviving a program, I'll comment on it
- and other novices won't have to "grope" for the info, or chance
- upon it.
-
- Since becoming a "source code junkie" I've tried getting source any
- way I could think of. Downloading, asking authors, buying it from
- authors, porting from other languages, etc.
-
- The porting from Pascal (or other languages) is the ultimate "get
- it running" challenge, compared to simply reviving a C project. It
- REALLY *forces* learning. I've only been successful at it on rare
- and simple occasions. I can always get a partial run out of such a
- conversion - rarely a total, equivalent run.
-
- So, to augment and offset that problem, I got a Pascal compiler,
- then another came with Code Warrior. Now I not only don't "need"
- to port the Pascal source to C to "get running source code" but I
- have a whole new range of source to gather and learn from. Besides
- learning some Pascal in C port attempts, I discovered some of the
- Pascal source is unrunning as downloaded. So the revival projects
- are carried over into that, as well.
-
- To make a Long story longer, a collection of running source code IS
- a reference library on HOW TO. With SearchFiles 1.3, you can have
- INSTANT answers to programming questions, running it on the folder
- containing the source.
-
- I do know enough about programming to "write my own stuff" - I
- just haven't done so, to amount to anything, yet. I really do LIKE
- "Copy/Paste/Modify" programming and "Monkey See - Monkey Do"
- programming, though. I haven't thought of a program I'd like to
- write that would be worth writing, which hasn't been done, which is
- within the range of my skill in the art of programming. So, until
- then the profits will have to wait and I'll keep having fun! And
- see if I can help the next guy have an easier time of it.
-
- -Ken-
-